package com.example.demo.controller;

import com.example.demo.Bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class LoginController {
    @RequestMapping(value = "/loginuser")
    public String Login(@RequestParam("Email") String Email,
                        @RequestParam("Password")String passWord){
        User user = new User();
        user.setUserEmail(Email);
        user.setUserPswd(passWord);
        System.out.println(user);
        return "Yojindex";
    }
}
